#include <curl/curl.h>
int main(){
    CURL *curl = curl_easy_init();
    if(curl) {
        CURLcode res;
        curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
        res = curl_easy_pause(curl, CURLPAUSE_ALL);
        printf("---- paused the curl handle for perform \n");
        printf("%d\n", res);
        if(res == CURLE_OK) {
            printf("pause success\n");
        }
        res = curl_easy_perform(curl);
        curl_easy_cleanup(curl);
    }
}